<div id="player-menu-accordion">
    <h3 style="clear:both"><a href="#">Résumé</a></h3>
    <div style="clear:both">
        <div style="float:left; width: 65%; padding: 1%;">
            <div style="height: 100px;">
            <ul style="text-align:left; list-style: none;">
                <li>
                    <span style="font-weight:bold"><?php echo __('Pseudonyme :') ?></span>
                    <span style="float:right"><?php echo  $sf_guard_user->getPseudo() ?></span>
                </li>
                <li>
                    <span style="font-weight:bold"><?php echo __('E-mail :') ?></span>
                    <span style="float:right"><?php echo $sf_guard_user->getEmailAddress() ?></span>
                </li>
            </ul>
            </div>
            <?php if($sf_guard_user->getSignature() != NULL): ?>
                <hr/>
                <div style="clear:both; width:100%; text-align:left; vertical-align:top; padding: 5px;">
                    <?php echo $sf_guard_user->getSignature() ?>
                </div>
            <?php endif;?>
        </div>
        <div style="float:right; width: 25%; overflow:auto;">
            <img rel="<?php echo __('Avatar') ?>" src="<?php echo $sf_guard_user->getAvatar() ?>"/>
            <?php if($sf_guard_user->getQuote() != NULL): ?><br/>
                <span style="font-size:12px; font-style: italic;"><?php echo $sf_guard_user->getQuote(); ?></span>
            <?php endif;?>
        </div>
        <a class="btn" href="<?php echo url_for('show_player', $sf_guard_user)  ?>">Profil</a>
        <a class="btn" href="<?php echo url_for('edit_player', $sf_guard_user) ?>">Réglages</a>
        <?php if($sf_guard_user->getActualCharacter() != NULL): ?>
        <?php endif; ?>
    </div>
    <?php if($sf_guard_user->hasCharacters()): ?>
    <h3 style="clear:both"><a href="#">Changer de personnage</a></h3>
    <div style="clear:both">
        Personnage utilisé : <span id="actual-character"><?php echo $sf_guard_user->getActualCharacter()->getPseudo() != NULL ? link_to($sf_guard_user->getActualCharacter()->getPseudo(), "show_character", $sf_guard_user->getActualCharacter()) : __('Aucun')?></span><br/>
        Changer de personnage :
        <select id="switch-actual-character">
        <?php foreach($sf_guard_user->getKTDCharacters() as $ktd_character): ?>
            <option <?php echo $ktd_character == $sf_guard_user->getActualCharacter() ? 'selected="selected"' : '' ?> value="<?php echo $ktd_character->getId()?>"><?php echo $ktd_character->getPseudo() ?></option>
        <?php endforeach;?>
        </select>
    </div>
    <?php endif; ?>
</div>

